package com.jzo2o.customer.controller.open;

import com.jzo2o.customer.model.dto.request.InstitutionRegisterReqDTO;
import com.jzo2o.customer.service.IServeProviderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author whx
 * @Date 2024/12/2 15:22
 */
@RestController("openServeProviderController")
@RequestMapping("/open/serve-provider/institution")
@Api(tags = "服务提供者相关接口")
public class ServeProviderController {

    @Autowired
    private IServeProviderService serveProviderService;

    @PostMapping("/register")
    @ApiOperation("机构注册")
    public void institutionRegister(@RequestBody InstitutionRegisterReqDTO dto){
        serveProviderService.register(dto);
    }

}
